package bhbt.controller.member.kuang;

import java.util.HashMap;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import bhbt.controller.core.BaseController;
import bhbt.model.Member;
import bhbt.service.log.LogKuangPayService;
import bhbt.taglib.pagetag.Pagination;
import bhbt.utils.ContextUtil;





@Controller
 
public class logKuangPayController extends BaseController {

	
	@Resource
	private LogKuangPayService logKuangPayService;
	
	@RequestMapping("member/kuang/logKuangPayList.shtml")
	public String list(HttpServletRequest request) throws Exception{
		
		//会员信息
		Member member = ContextUtil.getMember();
		 
        
		HashMap formMap = getParameterMap(request);
			
		formMap.put("where", " 1=1 and b.loginName = '"+member.getLoginName()+"' or c.loginName = '"+member.getLoginName()+"'");	
        formMap.put("pagination.orderBy"," a.id desc");  //排列
        Pagination page = logKuangPayService.queryForPageList("logKuangPayForPage",formMap);
        request.setAttribute(Pagination.pageBeanName, page);
		return "member/kuang/logKuangPayList";
	}
	
	 
	 
}
